package com.travel.server.manager.impl.youzan;

/**
 * @Author: LiZhenhui
 * @Date: 2018/12/17 17:28
 * @Desc:
 */
public enum YouzanExpressTypeEnum {

    TYPE1(0L,"快递发货"),
    TYPE2(1L,"到店自提"),
    TYPE3(2L,"同城配送"),
    TYPE4(9L,"无需发货（虚拟商品订单）");

    private Long type;

    private String desc;

    YouzanExpressTypeEnum(Long type, String desc){
        this.type = type;
        this.desc = desc;
    }

    public Long getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByType(Long type){
        for(YouzanExpressTypeEnum item : YouzanExpressTypeEnum.values()){
            if(item.getType().equals(type)){
                return item.getDesc();
            }
        }
        return null;
    }
}
